import requests
def getHeader():
    url = "http://ihrm-test.itheima.net/api/sys/login"
    json_data = {"mobile": "13800000002", "password": "123456"}
    resp = requests.post(url=url,json=json_data)
    bearer  =resp.json().get('data')
    header = {"Content-Type": "application/json", "Authorization": "Bearer " + bearer}
    return header

if __name__ == '__main__':
    print(getHeader())